function qx(){

    //关闭弹框
    let index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
    parent.layer.close(index); //再执行关闭
}

layui.use(['form','laydate','form','element'], function(){
    var form = layui.form,
        layer = layui.layer;

    form.on('submit(qd)', function(data){
        // 刷新页面弹框，失败关闭
        //ajax发送添加请求
        $.ajax({
            type:"post"
            ,url:'/advanced/banned'
            ,data:data.field
            ,dataType:'json'
            ,success:function(res){
                //关闭弹框
                let index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                parent.layer.close(index); //再执行关闭

                // 刷新父页面的table表格
                parent.refaseUser();
            }
            ,error:function (e){
                console.log("失败");
                console.log(e)
            }
        })
        // 阻止表单默认提交
        return false;
    });

});